/**
 * Model representing a object that has a address
 */
Ext.define('Sisconsolid.model.HasAddress', {
      extend: 'Ext.data.Model',
      fields: [
            // id field
            {
                  name: 'idAddress',
                  type: 'int',
                  useNull : true
            },
            {
                  name: 'idProvince',
                  type: 'int'
            },
            {
                  name: 'province',
                  type: 'string',
				  persist: false
            },
            {
                  name: 'idCity',
                  type: 'int'
            },
            {
                  name: 'city',
                  type: 'string',
				  persist: false
            },
            {
                  name: 'idNeighborhood',
                  type: 'int'
            },
            {
                  name: 'neighborhood',
                  type: 'string',
                  persist: false
            },
            {
                  name: 'idStreet',
                  type: 'int'
            },
            {
                  name: 'street',
                  type: 'string',
				  persist: false	
            },
            {
                  name: 'number',
                  type: 'int',
                  useNull : true
            },
            {
                  name: 'floor',
                  type: 'string'
            },
            {
                  name: 'department',
                  type: 'string'
            },
            {
                  name: 'block',
                  type: 'string'
            },
            {
                  name: 'lot',
                  type: 'string'
            },
            {
                  name: 'prittyAddress',
                  type: 'string',
				  persist: false
            }
      ] 
});